package com.G3.Object;

import com.badlogic.gdx.math.Vector2;

public class Opponent extends Character {
	public static final int MAX_VELOCITY_FINAL = 30;
	public static int MaxLifesStatic = 1;
	public static float MaxVelocityStatic = 1;
	
	private int lifes = 1;
	private boolean isDie = false;
	public Opponent(Vector2 centerPosition) {
		super(selectRandomOpponet(), centerPosition);
	}
	

	// giết chết 1 mạng moster
	public void killed() {
		if(--lifes == 0)
		{
			isDie = true;
		}
	}

	public boolean isDie() {
		// TODO Auto-generated method stub
		return isDie;
	}
	
	// làm con moster này chết
	public void destroy()
	{
		isDie = true;
	}
}
